{% extends "registration/base.html" %}

{% block content %}

{% if form.errors %}
<p class="error">Your username and password didn't match.  Please try again.</p>
<p><a href="/accounts/password/reset/">Forgot your password?</a></p>
{% endif %}

<form method="post" action=".">
    <table>
        <tr><th>{{ form.username.label_tag }}</th><td>{{ form.username }}</td></tr>
        <tr><th>{{ form.password.label_tag }}</th><td>{{ form.password }}</td></tr>
        <tr><td><input type="submit" value="Log In" /></td><td><input type="reset" /></td></tr>
    </table>
    <input type="hidden" name="next" value="{{ next }}" />
</form>
<p><a href="/accounts/password/reset/">Forgot your password?</a></p>
<p>Don't have an account? <a href="/accounts/register/">Sign up for one!</a></p>
{% endblock %}
